(function($) {  
    $.get = function(key)   {  
        key = key.replace(/[\[]/, '\\[');  
        key = key.replace(/[\]]/, '\\]');  
        var pattern = "[\\?&]" + key + "=([^&#]*)";  
        var regex = new RegExp(pattern);  
        var url = unescape(window.location.href);  
        var results = regex.exec(url);  
        if (results === null) {  
            return null;  
        } else {  
            return results[1];  
        }  
    }  
})(jQuery); 

$(document).ready(function($) {


	
});


function CargarNav(pTipo){
	//TRAER EL MENU DESDE PHP
	var parametros={ "TIPO": pTipo};
	$.ajax({
		data: parametros
		,url: '../PHP/MENUPRINCIPAL/phpCargarMenu.php'
		,type:'post'
        ,beforeSend: function(){
            $("#naver").html("Cargando...");
        }
        ,success: function(response){
        	$("#naver").html(response);
        	$("#naver").naver({
				maxWidth: '800px'
			});
        }
    });
}

